package com.lh.pattern.obvious;

import java.util.Random;

public class HaHa extends Thread{
	private static int  i =100 ;
	public void sayHaHa(){
		try {
			i++;
			Random random = new Random();
			int t = random.nextInt(1000);
			Thread.sleep(t);
			System.out.println("i am haha i="+i+"  slepp "+t);
					
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	@Override
	public void run() {
		sayHaHa();
	}

}
